package com.hornsun.role.dto;

import com.hornsun.data.dbo.Permission;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by 编译中... on 2018/7/12.
 */
public class RoleDTO {
    private String roleGuid;  //角色guid

    private String roleName;  //角色名

    private List<Permission> permissionList; //角色对应的权限信息

    public RoleDTO (){
        permissionList = new ArrayList<Permission>();
    }

    public String getRoleGuid() {
        return roleGuid;
    }

    public void setRoleGuid(String roleGuid) {
        this.roleGuid = roleGuid;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public List<Permission> getPermissionList() {
        return permissionList;
    }

    public void setPermissionList(List<Permission> permissionList) {
        this.permissionList = permissionList;
    }

    @Override
    public String toString() {
        return "RoleDTO{" +
                "roleGuid='" + roleGuid + '\'' +
                ", roleName='" + roleName + '\'' +
                ", permissionList=" + permissionList +
                '}';
    }
}
